function calendarReload(url){
    window.location.assign(url);
}

function calendarUpdate(sNameInstance,sPath, sDate){
    if(window.XMLHttpRequest) // FIREFOX
          xhr_object = new XMLHttpRequest();
     else if(window.ActiveXObject) // IE
          xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
     else
          return(false);
     xhr_object.open("POST", "ajax/calendarUpdate.php",true);
     xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 
     xhr_object.send("sNameInstance="+ sNameInstance +"&sDate="+sDate+"&sPath="+sPath);
     xhr_object.onreadystatechange = function() { 
         if(xhr_object.readyState == 4){
            document.getElementById(sNameInstance).innerHTML = xhr_object.responseText;
        }
     }
    
}